import React, { Component } from 'react'
import Hotshowing from './Hotshowing';
import Comingsoon from './Comingsoon'

export default class Movie extends Component {

  constructor() {
    super();
    this.state = {
      title: '中国机长'
    }
  }


  // state = {
  //   title: '中国机长',
  //   user: {
  //     name: 'xiaoming',
  //     age: 18
  //   }

  // }

  render() {
    return (
      <div>
        <Hotshowing title={this.state.title}></Hotshowing>
        <Comingsoon></Comingsoon>
      </div>
    )
  }

  componentDidMount() {
    // this.state.title = "大闹天宫";

    setTimeout(() => {
      this.setState({
        title: '大闹天宫'
      })
    }, 5000);


    // this.state.user.name = "liuhuihui";
    // this.setState({});

  }
}
